aboutsummaryrefslogtreecommitdiff
path: root/src/app/manga/[id]
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-06-07 14:03:40 +0530
committerreal-zephex <[email protected]>2024-06-07 14:03:40 +0530
commit9e0d502e6f9c0dd1dc88f42f7be4aae71c858164 (patch)
tree661d2f887d323c374529f4fe2af168708f2bdb39 /src/app/manga/[id]
parentMerge branch 'master' of https://github.com/real-zephex/Dramalama-Next (diff)
downloaddramalama-9e0d502e6f9c0dd1dc88f42f7be4aae71c858164.tar.xz
dramalama-9e0d502e6f9c0dd1dc88f42f7be4aae71c858164.zip
✨ style: changed background color for show pages
Diffstat (limited to 'src/app/manga/[id]')
-rw-r--r--src/app/manga/[id]/page.jsx61
1 files changed, 28 insertions, 33 deletions
diff --git a/src/app/manga/[id]/page.jsx b/src/app/manga/[id]/page.jsx
index d6828b2..f048b06 100644
--- a/src/app/manga/[id]/page.jsx
+++ b/src/app/manga/[id]/page.jsx
@@ -10,39 +10,34 @@ const MangaInfoPage = async ({ params }) => {
const data = await MangaInfoResults(id);
return (
- <section>
- <section>
- <section className="m-auto w-full lg:w-9/12">
- {/* header section */}
- <div className="flex items-center p-2">
- <Image
- src={data.image}
- width={170}
- height={280}
- className="rounded-lg"
- alt="Manga Poster"
- />
- <div className="ml-2">
- <h3 className="text-2xl">
- {data.title.english || data.title.romaji}
- </h3>
- {data.genres &&
- data.genres.map((item, index) => (
- <Chip
- key={index}
- color="warning"
- variant="faded"
- size="sm"
- className="mr-1"
- >
- {item}
- </Chip>
- ))}
- </div>
- </div>
- <MangaDescriptionTabs data={data} />
- </section>
- </section>
+ <section className="m-auto w-full lg:w-9/12">
+ <div className="flex items-center p-2">
+ <Image
+ src={data.image}
+ width={170}
+ height={280}
+ className="rounded-lg"
+ alt="Manga Poster"
+ />
+ <div className="ml-2">
+ <h3 className="text-2xl">
+ {data.title.english || data.title.romaji}
+ </h3>
+ {data.genres &&
+ data.genres.map((item, index) => (
+ <Chip
+ key={index}
+ color="warning"
+ variant="faded"
+ size="sm"
+ className="mr-1"
+ >
+ {item}
+ </Chip>
+ ))}
+ </div>
+ </div>
+ <MangaDescriptionTabs data={data} />
</section>
);
};